"""
Python 中执行shell 命令
"""
import os

# windows 为例
os.system('dir')

print(os.popen('dir').read())

# os.spawnl(os.P_NOWAIT,'/bin/sh','sh')

import subprocess
# subprocess.run('ls')
# subprocess.run(['python3','test.py'])
